/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package py.fpuna.ii.electiva2.client.model;

import java.io.Serializable;
import java.util.Collection;

/**
 *
 * @author sebastian
 */
public class ClienteModel implements Serializable {

    private Integer clieCodigo;
    private String clieNombre;
    private String clieApellido;
    private String clieCi;
    private String clieDireccion;
    private String clieRuc;
    private Collection<py.fpuna.ii.electiva2.client.model.VentaModel> ventaCollection;

    public ClienteModel() {
    }

    public ClienteModel(Integer clieCodigo) {
        this.clieCodigo = clieCodigo;
    }

    public ClienteModel(Integer clieCodigo, String clieNombre, String clieApellido, String clieCi, String clieDir, String clieRuc) {
        this.clieCodigo = clieCodigo;
        this.clieNombre = clieNombre;
        this.clieApellido = clieApellido;
        this.clieCi = clieCi;
        this.clieDireccion = clieDir;
        this.clieRuc = clieRuc;
    }

    public Integer getClieCodigo() {
        return clieCodigo;
    }

    public void setClieCodigo(Integer clieCodigo) {
        this.clieCodigo = clieCodigo;
    }

    public String getClieNombre() {
        return clieNombre;
    }

    public void setClieNombre(String clieNombre) {
        this.clieNombre = clieNombre;
    }

    public String getClieApellido() {
        return clieApellido;
    }

    public void setClieApellido(String clieApellido) {
        this.clieApellido = clieApellido;
    }

    public String getClieCi() {
        return clieCi;
    }

    public void setClieCi(String clieCi) {
        this.clieCi = clieCi;
    }

    public String getClieDireccion() {
        return clieDireccion;
    }

    public void setClieDireccion(String clieDireccion) {
        this.clieDireccion = clieDireccion;
    }

    public String getClieRuc() {
        return clieRuc;
    }

    public void setClieRuc(String clieRuc) {
        this.clieRuc = clieRuc;
    }

    public Collection<py.fpuna.ii.electiva2.client.model.VentaModel> getVentaCollection() {
        return ventaCollection;
    }

    public void setVentaCollection(Collection<py.fpuna.ii.electiva2.client.model.VentaModel> ventaCollection) {
        this.ventaCollection = ventaCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (clieCodigo != null ? clieCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ClienteModel)) {
            return false;
        }
        ClienteModel other = (ClienteModel) object;
        if ((this.clieCodigo == null && other.clieCodigo != null) || (this.clieCodigo != null && !this.clieCodigo.equals(other.clieCodigo))) {
            return false;
        }
        return true;
    }


}
